﻿@using AnhDuyShop.Models;
@model AnhDuyShop.Models.Member
@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutPage_Admin.cshtml";
}

@{
    InfoMember infoMember = ViewBag.InfoMember;
}

<h2>Details</h2>

    <div class="row">
    <div class="col-sm-12">
        <!-- start: TEXT FIELDS PANEL -->
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-external-link-square"></i>
                Text Fields
                <div class="panel-tools">
                    <a class="btn btn-xs btn-link panel-collapse collapses" href="#">
                    </a>
                    <a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
                        <i class="fa fa-wrench"></i>
                    </a>
                    <a class="btn btn-xs btn-link panel-refresh" href="#">
                        <i class="fa fa-refresh"></i>
                    </a>
                    <a class="btn btn-xs btn-link panel-expand" href="#">
                        <i class="fa fa-resize-full"></i>
                    </a>
                    <a class="btn btn-xs btn-link panel-close" href="#">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="panel-body">
                <table class="table-responsive">
                    <tr class="btn-lg">
                        <td class="col-sm-3">Email </td>
                        <td class="col-sm-10">@Html.ActionLink(Model.UserEmail, "Edit", new { id = Model.UserID })</td>
                    </tr>


                    <tr class="btn-lg">
                        <td class="col-sm-3">Password </td>
                        <td class="col-sm-10">@Html.DisplayFor(model => model.Password) </td>
                    </tr>

                    <tr class="btn-lg">
                        <td class="col-sm-3">Privilege </td>
                        <td class="col-sm-10">@Html.DisplayFor(model => model.Privilege) </td>
                    </tr>

                    <tr class="btn-lg">
                        <td class="col-sm-3">Active </td>
                        <td class="col-sm-10">@Html.LabelFor(model => model.Active) </td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Fax : </td>
                        <td class="col-sm-10">@infoMember.Fax</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Number Phone : </td>
                        <td class="col-sm-10">@infoMember.NumberPhone</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Number Card Member : </td>
                        <td class="col-sm-10">@infoMember.NumberCardMember</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Company : </td>
                        <td class="col-sm-10">@infoMember.Company</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Representative : </td>
                        <td class="col-sm-10">@infoMember.Representative</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Address Company : </td>
                        <td class="col-sm-10">@infoMember.AddressCompany</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Tax Code : </td>
                        <td class="col-sm-10">@infoMember.TaxCode</td>
                    </tr>
                </table>
            </div>
        </div>
        <!-- end: TEXT FIELDS PANEL -->
    </div>
</div>

<p>
    @Html.ActionLink("Edit", "Edit", new { id= Model.UserID }, new { @class = "label label-sm label-danger"}) |
    @Html.ActionLink("Back to List", "Index", null, new { @class = "label label-sm label-danger" })
</p>
